Skip to content

[4.3] Allow compiling with warnings with min macOS version up to 14 - #122564

Open
aaronfranke wants to merge 1 commit into
godotengine:4.3from
aaronfranke:4.3-macos-min-ver
Open

[4.3] Allow compiling with warnings with min macOS version up to 14#122564
aaronfranke wants to merge 1 commit into
godotengine:4.3from
aaronfranke:4.3-macos-min-ver

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

What problem(s) does this PR solve?

This PR fixes Godot 4.3's Objective-C++ code to allow compiling with newer minimum macOS versions, up to macOS 14.0.

Justification: We should give users the flexibility to customize the minimum macOS version if they need to, such as if a dependency requires a newer minimum macOS version. This adds longevity to the 4.3 branch for macOS.

Additional information

No AI was used to make this PR.

A dedicated PR is required to backport this to 4.2 and earlier due to conflicts.

The version numbers after #if MAC_OS_X_VERSION_MIN_REQUIRED correspond to exactly the version in which those features become deprecated and therefore stop compiling when warnings are enabled.

I tested with up to macOS 26.5, and the only remaining problem with going that far is CGWindowListCreateImageFromArray which is deprecated as of macOS 15.0. This will require migration to ScreenCaptureKit.

This PR can be considered a further backport of PR #122563. However, I also had to include pieces of PR #95854 and PR #99350 in order to retain the same functionality without calling deprecated APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant